<?php
use think\Controller;

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});
Route::get('hello/:name', 'index/hello');


Route::rule('/','index/Index/index');
Route::rule('resources/blog/categories/:title','index/News/blogclass')->name('title')->pattern(['title' => '[0-9a-zA-Z.+_-]+']);
Route::rule('resources/blog/author/:author','index/News/author')->name('author')->pattern(['author' => '[0-9a-zA-Z.+_-]+']);
Route::rule('resources/blog/:url','index/News/detail')->name('url')->pattern(['url' => '[0-9a-zA-Z.+_-]+']);
Route::rule('resources/news-and-events/categories/:title','index/Events/eventsclass')->name('title')->pattern(['title' => '[0-9a-zA-Z.+_-]+']);
Route::rule('resources/news-and-events/:url','index/Events/detail')->name('url')->pattern(['url' => '[0-9a-zA-Z.+_-]+']);
Route::rule('resources/news-and-events/author/:author','index/Events/author')->name('author')->pattern(['author' => '[0-9a-zA-Z.+_-]+']);
Route::rule('products/:part_number/','index/Product/detail')->name('products')->pattern(['part_number' => '[0-9a-zA-Z.+_-]+']);
Route::rule('test/:series/:part_number/','index/Dan/test')->name('products')->pattern(['series' => '[0-9]+', 'part_number' => '[0-9a-zA-Z.+_-]+']);
Route::rule('product/brand/:brand/:tag/','index/Brand/xunhaun')->name('tag')->pattern(['tag' => '[0-9a-zA-Z.+_-]+']);
Route::rule('product/brand/:brand/','index/Brand/xunhaun')->name('brand')->pattern(['brand' => '[0-9a-zA-Z.+_-]+']);
Route::rule('resources/reference/:brand/','index/Cross/xunhaun')->name('brand')->pattern(['brand' => '[0-9a-zA-Z.+_-]+']);
Route::rule('sr/catalogue/','index/Esapi/class_page_es');/*总页面*/
Route::rule('/product/applications/high-temperature-bearings-/','index/TestStatic/static_view');/*高温轴承静态页面*/
Route::rule('/product/applications/high-temperature-bearings-/alloy-steel-material-','index/TestStatic/alloy_static_view');/*合金钢*/
Route::rule('/product/applications/high-temperature-bearings-/ceramic-material-','index/TestStatic/ceramic_static_view');/*陶瓷*/
Route::rule('/about-us/case-studies/','index/CaseStudies/index/')->append(['class_id' =>2152])/*案例列表*/;
Route::rule('/about-us/case-studies/supercharging-efficiency-at-tesla-s-gigafactory-with-lily-bearing/','index/CaseStudies/detail')->append(['case_number' => 1]);/*案例1*/


